{% extends "base.html" %}

{% block title %}New Eve Operation: {{op.name}}{% endblock %}
{% block heading %}New Eve Operation: {{op.name}}{% endblock %}

{% block leftmenu %}
			<a href='/listops'>Cancel</a><br/>
{% endblock %}

{% block content %}

		<form action='/newop' method='post' id='mainform' name='mainform'>
		<input type='hidden' name='new_op' value='True' />
		<table>
			<tr>
				<td>Op name:</td>
				<td><input type='text' name='name'/></td>
			</tr>
			<tr>
				<td>Op type:</td>
				<td>
					<select name='op_type'>
						<option selected='selected'>PvE</option>
						<option>PvP</option>
						<option>Mining</option>
					</select> 
				</td>
			</tr>
			<tr>
				<td>Site type:</td>
				<td>
					<select name='site_type'>
						{% for site in site_names %}
							<option {% ifequal site site_type %}selected='selected' {% endifequal %}>{{site}}</option>
						{% endfor %}
					</select> 
				</td>
			</tr>	
			<tr>
				<td>FC:</td>
				<td>
					<input type='text' name='fc' value='{{op_fc}}' />
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td><input type='submit' value='Save' /></td>
			</tr>	
		</table>
		</form>

		<script type="text/javascript">
			document.mainform.name.focus();
			document.mainform.name.select();
		</script>
{% endblock %}
